<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title></title>
	<h:outputStylesheet library="css" name="style.css" />
</h:head>
<h:body
	style="background-color: red;height: 100%; background-color: #dbe1d2;">
	<table id="f_wrapper" width="100%" align="center">
		<tbody>
			<tr>
				<td width="264" valign="top" height="78"><font class="espaco">
				</font></td>
				<td width="100%" valign="top" height="78">
					<div id="header" style="height: 70px;"
						class="ui-widget ui-widget-header">
						<div style="margin-top: 10px; float: left; width: 166px">
							
						</div>
						<div id="email" style="width: 250px; float: right;">
							#{loginMBean.usuario}</div>
						<div id="logo" align="right" style="width: 60%;">
							<span
								style="color: White; font-family: Arial; font-size: 16pt; font-weight: bold;"
								id="lblTitulo1">SISTEMA ONLINE - Mensures</span>
						</div>
						<div style="height: 50px; width: 70px; float: right;">
							<h:form rendered="#{not empty loginMBean.usuario}">
								<h:commandButton image="/resources/images/logout.png"
									title="Sair do Sistema" alt="Sair do Sistema"
									label="Sair do Sistema" action="#{loginMBean.logout}" />
							</h:form>
						</div>

					</div>

				</td>
			</tr>
			<tr>
				<td width="800" colspan="2">
					<!-- MENU BAR -->
					<h:form>
						<p:menubar rendered="#{not empty loginMBean.usuario and loginMBean.notIsMaster }">
							
							<p:submenu label="Painel" icon="ui-icon-document">
								<p:menuitem value="Visualizar" action="#{navigationPageControlMB.showDashBoard}" />
							</p:submenu>
							<p:submenu label="Gerenciar" icon="ui-icon-document">
								<p:menuitem value="Empresa" action="#{navigationPageControlMB.showGerenciarEmpresa}" />
								<p:separator />
								<p:menuitem value="Publicações" action="#{navigationPageControlMB.showGerenciarPublicacoes}" />
							</p:submenu>

							<p:submenu label="Registrar" icon="ui-icon-help">
								<p:menuitem value="Campanha"  onclick="dlgRegCampanha.show();" />
								<p:menuitem value="Evento" onclick="dlgRegEvento.show();" />
								<p:menuitem value="Fase" onclick="dlgRegFase.show();" />
							</p:submenu>
							<p:submenu label="Lançar" icon="ui-icon-help">
								<p:menuitem onclick="dlgSelMidia.show();" value="Publicação"
									icon="ui-icon-search" />
							</p:submenu>
							<p:submenu label="Relatório" icon="ui-icon-pencil">
								<p:menuitem value="Completo" action="#{navigationPageControlMB.showRelCompleto}" icon="ui-icon-arrowreturnthick-1-w" />
								<p:menuitem value="Simplificado"  action="#{navigationPageControlMB.showRelSimplificado}"
									icon="ui-icon-arrowreturnthick-1-e" />
							</p:submenu>
							<p:submenu label="Configurações" icon="ui-icon-pencil">
								<p:menuitem value="Tema" onclick="dlgConfigTema.show();" />
							</p:submenu>
						</p:menubar>
					</h:form>

				</td>
			</tr>
		</tbody>

	</table>
	<table id="f_wrapper" width="80%" align="center">
		<tr>
			<td>

				<div class="f_lvl1nav_separator"></div>

				<div id="f_content" align="center">

					<div>
						<ui:insert name="content">

						</ui:insert>
					</div>


				</div> <br></br> <br></br> <!-- END f_content -->
			</td>
		</tr>
		<tr>
			<td></td>
		</tr>

	</table>
	<table width="100%" align="center">

		<tr>
			<td>
				<div id="header" class="ui-widget ui-widget-header"
					style="height: 50px">
					<table width="90%" cellspacing="0" cellpadding="0" border="0"
						align="center">
						<tbody>
							<tr>
								<td align="center"><a class="linkSmall2"> POLÍTICA DE
										PRIVACIDADE </a></td>
								<td valign="middle" align="center" rowspan="3"></td>
							</tr>
							<tr>
								<td align="center" colspan="2"><font class="a3"> <b>Av.da
											Saudade, 500 Ponte Preta - Cep 13.041-903 São Paulo-SP -
											0800.7721195 - Outras localidades: 19-3735.5000</b>
								</font></td>
							</tr>
							<tr>
								<td align="center" colspan="2"><font class="a3">
										Copyright © 2012 MENSURES - São Paulo. Todos os direitos
										reservados <br></br>
								</font></td>
							</tr>
						</tbody>
					</table>
				</div>
			</td>
		</tr>

	</table>

</h:body>
</html>
